package com.falidos.visao.servlets;

import java.util.Enumeration;
import java.util.HashMap;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;


@WebServlet("/SuperServlet")
public class SuperServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;	
	
	@SuppressWarnings("rawtypes")
	protected HashMap preparaDados(HttpServletRequest request){		
		Enumeration e = request.getParameterNames();		
		HashMap<String, Object> dados = new HashMap<String, Object>();
		while(e.hasMoreElements()){
			String param = (String) e.nextElement();
			dados.put(param, request.getParameter(param));				
		}			
		return dados;
	}
}
